package com.shiyingzi.dictionary.service;

import java.util.List;

import com.shiyingzi.common.PageableData;
import com.shiyingzi.dictionary.model.Dictionary;

public interface IDictionaryService {
	public static String BEAN_ID = "dic.dictionaryService";
	
	PageableData<Dictionary> doQuery(int page, int limit, String dicName);
	
	/**获取某个类型的字典列表*/
	public List<Dictionary> getDictionaryByType(String type);
	
	/**获取某个类型某个key的value值*/
	public List<Dictionary> getDictionaryByTypeAndKey(String type, String key);
	
	public Dictionary getDictionaryById(int id);
	
	public Dictionary addDictionary(Dictionary dic);
	
	public Dictionary delDictionary(Dictionary dic);
	
	public Dictionary modifyDictionary(Dictionary dic);
	
	

}
